package chapter1.thread.task.superMarket;

import java.util.Date;

public class Upload extends Thread {    
    Supermarket sup;

    public Upload(Supermarket sup) {
        this.sup = sup;
    }

    @Override
    public void run() {
        while (true) {
            try {
                sleep(20000);
                TestMarket.upload(sup);
//                System.out.println(new Date());
            } catch (InterruptedException e) {
//                e.printStackTrace();
            }
        }
    }


}
